
<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <ol class="breadcrumb" ng-if="false">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/product/list">产品列表</a></li>
    <li class="active">修改产品销售状态</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate has-auth where="btn" who="PRODUCT_UPDATE_SALEPROCESS" owner="{{project.createBy}}" style="margin-left: -80px;">  

    <div class="form-group" ng-class="{'has-error':form.pPeriods.$invalid }">
      <label class="col-sm-2 control-label">本期期次</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" name="pPeriods" ng-model="item.pPeriods" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pIssuingScale.$invalid }">
      <label for="advertTitleInput" class="col-sm-2 control-label"><!--单期规模-->本期规模</label>
      <div class="col-sm-5">
        <input type="number" class="form-control" placeholder="单期规模" name="pIssuingScale" ng-model="item.pIssuingScale" min="0"><span class="form-control-feedback">万</span>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pAllSubscriptionAmountTmp.$invalid }">
      <label for="advertTitleInput" class="col-sm-2 control-label"><!--已销售总额-->本期已销售金额</label>
      <div class="col-sm-5">
        <input type="number" class="form-control" id="advertTitleInput" placeholder="产品已销售总额,单位万元" name="pAllSubscriptionAmountTmp" ng-model="item.pAllSubscriptionAmountTmp" min="0"><span class="form-control-feedback">万</span>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pSizeRatioType.$invalid }">
      <label class="col-sm-2 control-label">大小配比类型</label>
      <div class="col-sm-5">
        <select class="form-control" name="pSizeRatioType" ng-model="item.pSizeRatioType" ng-options="m.value as m.text for m in dictMap['pSizeRatioTypeModel']" ng-change="changePsizeRatioType()"></select>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pSizeRatioExplain.$invalid}">
      <label class="col-sm-2 control-label">大小配比说明</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="pSizeRatioExplain" ng-model="item.pSizeRatioExplain" placeholder="大小配比说明" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pRecruitmentSummary.$invalid && form.pRecruitmentSummary.$dirty}">
      <label class="col-sm-2 control-label">募集进度说明</label>
      <div class="col-sm-5">
        <textarea class="form-control" placeholder="募集进度说明" name="pRecruitmentSummary" ng-model="item.pRecruitmentSummary" style="height:100px;"></textarea>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pSaleStatus.$invalid}">
      <label class="col-sm-2 control-label">销售状态</label>
      <div class="col-sm-5" >
        <select class="form-control" name="pSaleStatus" ng-model="item.pSaleStatus" ng-options="m.value as m.text for m in dictMap['productSaleStatusModel']" required="required" placeholder="销售状态"> </select> 
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-3">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>


    <div ng-if="project.outProductId" style="width:400px;height:100px;position: absolute;top: 50px;right: 20px;">
      <div>其他说明</div>
      <div>
        {{project.otherInstructions}}
      </div>
    </div>  
  </form>
</div>
